<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><s:text name="page.title.prefix" /> <s:property value="#pageTitle" /></title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	</head>
	<body>

		<div>
			<a href="viewCategory.do">new Category</a> categorys:
			<ul>
				<s:iterator value="categories" status="status">
					<li>
						<a href="viewCategory.do?category.id=<s:property value="id"/>"><s:property value="id" />
						</a>
						<s:property value="name" />
						<a href="removeCategory.do?category.id=<s:property value="id"/>">X</a>
					</li>
				</s:iterator>

			</ul>
		</div>

		<jsp:include page="/include/alertErrors.jsp" />
	</body>

</html>